# 定义字典并存储卡面所学的5个编程术语（键）及其含义（值）
glossary = {
    'string': 'A series of characters.',
    'comment': 'A note in a program that the Python interpreter ignores.',
    'list': 'A collection of items in a particular order.',
    'loop': 'A sequence of statements which is executed until a certain condition is satisfied.',
    'dictionary': "A collection of key-value pairs.",
}

# 打印每个术语及其含义
word = "string"
print(f"\n{word.title()}: {glossary[word]}")

word = "comment"
print(f"\n{word.title()}: {glossary[word]}")

word = "list"
print(f"\n{word.title()}: {glossary[word]}")

word = "loop"
print(f"\n{word.title()}: {glossary[word]}")

word = "dictionary"
print(f"\n{word.title()}: {glossary[word]}")